package com.powerunion.datacollection.dao;

import java.sql.Connection;
import java.util.List;

import com.powerunion.datacollection.model.Accessories;

public interface AccessoriesDao {
	//public boolean save(List files,AccessoriesParams ap) throws DaoException;
	public Accessories findAccessoriesByKey(String id) throws DaoException;
	public boolean save(Accessories accessories, Connection conn)
	 throws DaoException;
	public boolean save(Accessories accessories) throws DaoException;
	public List getAccessoriesByFormId(String formId) throws DaoException;
	public List getAccessoriesBySubmi(String formId,String submiUser,String procId,String actId) throws DaoException;
	/**
	 * 获取当前的报送任务的上传附件
	 * @param formId
	 * @param procId
	 * @param approveId
	 * @return
	 * @throws DaoException
	 */
	public List getAccessories4SubWork(String formId,String procId,String approveId) throws DaoException;
	
	/**
	 * 获取当前所有的报送任务的上传附件信息
	 * @param formId
	 * @param procId
	 * @param submissionWorkItems
	 * @return
	 * @throws DaoException
	 */
	public List getAccessories4AllSubWork(String formId,String procId,List submissionWorkItems) throws DaoException;
	
	public boolean delete(String[] codes) throws DaoException;
}
